#ifndef ANIMATION_H
#define ANIMATION_H

#include <QApplication>
#include <QMainWindow>
#include <QPushButton>
#include <QLabel>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPropertyAnimation>

class Animation : public QMainWindow{
        Q_OBJECT
public:
    Animation();
    void setupUI();
public slots:
    void changeColor();
    void move();
    void reset();
private:
    QLabel* rect;
    QPushButton* moveButton;
    QPushButton* colorButton;
    QPushButton* resetButton;
    QPropertyAnimation* mMove;
    QPropertyAnimation* mReset;
    QPropertyAnimation* mColor;
    // QRect initGeo;
};

#endif // ANIMATION_H
